|
Menü konumu |
---|
Draft → Mirror |
Tezgahlar |
Draft, Arch |
Varsayılan kısayol |
M I |
Versiyonda tanıtıldı |
- |
Ayrıca bkz |
Draft Scale |
The Draft Mirror command creates mirrored copies, Part Mirror objects, from selected objects. A Part Mirror object is parametric, it will update if its source object changes.
The command can be used on 2D objects created with the Draft Workbench or Sketcher Workbench, but also on many 3D objects such as those created with the Part Workbench, PartDesign Workbench or BIM Workbench.
Mirroring an object
See also: Draft Snap and Draft Constrain.
The single character keyboard shortcuts available in the task panel can be changed. See Draft Preferences. The shortcuts mentioned here are the default shortcuts.
See also: Property editor.
A Part Mirror object is derived from a Part Feature object and inherits all its properties. It also has the following additional properties:
Base
Link
): specifies the object that is mirrored.Plane
Vector
): specifies the base point of the mirror plane.Vector
): specifies the normal direction of the mirror plane.See also: Autogenerated API documentation and FreeCAD Scripting Basics.
To mirror objects use the mirror
method of the Draft module.
mirrored_list = mirror(objlist, p1, p2)
objlist
contains the objects to be mirrored. It is either a single object or a list of objects.p1
is the first point of the mirror plane.p2
is the second point of the mirror plane.mirrored_list
is returned with the new Part::Mirroring
objects. It is either a single object or a list of objects, depending on objlist
.Example:
import FreeCAD as App
import Draft
doc = App.newDocument()
place = App.Placement(FreeCAD.Vector(1000, 0, 0), App.Rotation())
polygon1 = Draft.make_polygon(3, 750)
polygon2 = Draft.make_polygon(5, 750, placement=place)
p1 = App.Vector(2000, -1000, 0)
p2 = App.Vector(2000, 1000, 0)
line1 = Draft.make_line(p1, p2)
mirrored1 = Draft.mirror(polygon1, p1, p2)
Line2 = Draft.make_line(-p1, -p2)
mirrored2 = Draft.mirror([polygon1, polygon2], -p1, -p2)
doc.recompute()